//
//  DateTurnStr.h
//  CardManage
//
//  Created by C on 2017/11/7.
//  Copyright © 2017年 mupay. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface DateTurnStr : NSObject

//时间戳转时间
+ (NSString *)StringChangeNSdate:(NSString *)dateStr andType:(BOOL)needHMS;

//时间转时间戳
+ (NSString *)dateTurnString:(NSString *)str;

//日期比较相差多少天
+(NSInteger)CompareDate:(NSDate *)startDate :(NSDate *)endDate;

//账单日和开始时间对比
+(NSInteger)CompareStatementDate:(NSString *)StatementDate :(NSString *)RepaymentDate :(NSDate *)StartDate;

//还款日和结束时间对比
+(NSInteger)CompareRepaymentDate:(NSString *)RepaymentDate :(NSString *)StatementDate :(NSDate *)EndDate;

//预览计划时间比较
+(BOOL )CompareTime:(NSString *)planTime :(NSDate *)ChoseDate;


@end
